package com.itboye.jigongbao.utils

import android.annotation.SuppressLint
import android.content.Context
import android.telephony.TelephonyManager
import com.itboye.jigongbao.app.MyApplication



/**
 * Created by Administrator on 2017/12/21.
 */
class MobileUtil {
    companion object {
        @SuppressLint("MissingPermission")
        fun getDeviceToken(): String {
            val tm = MyApplication.Companion.instance!!.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager
            return tm.deviceId
        }
    }
}